package com.general.template.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Author: 杰哥
 * Date: 2021/2/16 21:09
 * @Description:
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "power_measurement_scale")
public class PowerMeasurementScale implements Serializable {
    /**
     * 唯一主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 测评名称
     */
    @TableField(value = "measurement_name")
    private String measurementName;

    /**
     * 测评介绍
     */
    @TableField(value = "measurement_introduce")
    private String measurementIntroduce;

    /**
     * 测评指导语
     */
    @TableField(value = "measurement_instructions")
    private String measurementInstructions;

    /**
     * 测评岗位id
     */
    @TableField(value = "jobs_id")
    private Integer jobsId;

    /**
     * 是否禁用测评 0否 1是
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 测评考题类型
     */
    @TableField(value = "measurement_type_id")
    private Integer measurementTypeId;

    /**
     * 测评维度id
     */
    @TableField(value = "dimension_id")
    private Integer dimensionId;

    /**
     * 创建考卷时间
     */
    @TableField(value = "create_time")
    @JsonFormat(locale="zh", timezone="GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_MEASUREMENT_NAME = "measurement_name";

    public static final String COL_MEASUREMENT_INTRODUCE = "measurement_introduce";

    public static final String COL_MEASUREMENT_INSTRUCTIONS = "measurement_instructions";

    public static final String COL_JOBS_ID = "jobs_id";

    public static final String COL_STATUS = "status";

    public static final String COL_MEASUREMENT_TYPE_ID = "measurement_type_id";

    public static final String COL_DIMENSION_ID = "dimension_id";

    public static final String COL_CREATE_TIME = "create_time";
}